import execjs

# 处理sign的获取

with open("my.js","r",encoding="utf-8") as f:
    jscode = f.read()
    ctx = execjs.compile(jscode)
    sign = ctx.call("b","你好")
    print(sign)